﻿


<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/MasterMng.master" AutoEventWireup="true" CodeFile="AssignTask2.aspx.cs" Inherits="ExpertManager_AssignTask2" %>
<%@ Register Namespace="AjaxControlToolkit" Assembly="AjaxControlToolkit" tagPrefix="cc" %>
<%@ Register assembly="AjaxControlToolkit" 
             namespace="AjaxControlToolkit" tagprefix="asp" %>
<%@ Register assembly="ProudMonkey.Common.Controls"
             namespace="ProudMonkey.Common.Controls" tagprefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Header1" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>

      <div style="background-color:#CCCCFF;direction:rtl;padding-bottom:20px;padding-top:10px;border:1px solid #ccc;box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.075) inset;border-radius: 4px; color:#000066 ">
        <div style="padding-right:385px; width:100%">
          <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/checklist.png"
            Width="17%" />
        </div>
     
      
        <div style="width:93%;margin:auto;background-color:#CC99FF;border:1px solid #ccc;box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.075) inset;border-radius: 7px;">
       
        <div style="background-color:#9966FF;border-radius: 7px;text-align:center;height:30px">
         <asp:Label ID="Label12" runat="server" Font-Size="14px" ForeColor="#FFFF99" 
                    Text="تخصیص وظایف  "></asp:Label>
        </div>
          <div >
    <table>
    <tr>
    <td align="center" colspan="3">
    
    
        <br />
        <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
            ConnectionString="<%$ ConnectionStrings:CON %>" 
            ProviderName="System.Data.SqlClient" 
            SelectCommand="SELECT [Name],[Family], [ID] FROM [TblExperts] where ([ProvinceId]=@ProvinceId)">
            <SelectParameters>
              
            <asp:ControlParameter ControlID="drProvinces" Name="ProvinceId" 
                PropertyName="SelectedValue" Type="Int32" />
                                
            </SelectParameters>
            </asp:SqlDataSource>
        <asp:SqlDataSource ID="SqlProvinces" runat="server" 
            ConnectionString="<%$ ConnectionStrings:CON %>" 
            ProviderName="System.Data.SqlClient" 
            SelectCommand="SELECT [ProvinceName], [ID] FROM [TblProvince]">
        </asp:SqlDataSource>
     
        <br />
        </td>
    </tr>
    <tr>
        <td align="right" style="width: 584px">
        <asp:Label ID="Label5" runat="server"  Text="انتخاب شهرستان"></asp:Label>
        </td>
        <td align="right" style="width: 2399px" valign="top" bgcolor="#CC99FF">
    
        
        <asp:DropDownList ID="drProvinces" runat="server" DataSourceID="SqlProvinces" 
            DataTextField="ProvinceName" DataValueField="ID" 
            Width="137px" AutoPostBack="True" 
            onselectedindexchanged="drProvinces_SelectedIndexChanged" CssClass="textbox" 
           >
        </asp:DropDownList>
        </td>
    <td style="width: 1906px" align="right" bgcolor="#CC99FF">
    
        
        <asp:Label ID="Label4" runat="server" Text="مشاهده وظایف" ></asp:Label>
            <asp:DropDownList ID="DrpTask" runat="server" 
                 Width="212px" AutoPostBack="True" 
            onselectedindexchanged="DrpTask_SelectedIndexChanged" CssClass="textbox" 
               >
                <asp:ListItem Value="false">مشاهده وظایف تخصیص  داده نشده</asp:ListItem>
                <asp:ListItem Value="True">مشاهده وظایف برگشت خورده</asp:ListItem>
            </asp:DropDownList>
    </td>
    </tr>
    <tr>
    <td colspan="3">
    
        <cc1:ConfirmBox ID="Confirm1" runat="server" />
        <table style="width: 100%">
            <tr>
                <td align="right" colspan="2">
    
                    
                    
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        BackColor="White" BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px" 
        CellPadding="4" DataSourceID="SqlDataSource1" Width="100%" AllowPaging="True">
        <Columns>
           <%-- <asp:BoundField DataField="stor_id" HeaderText="Stor ID" ItemStyle-Width="70" />
            <asp:BoundField DataField="stor_name" HeaderText="Stor Name" ItemStyle-Width="150" />
            <asp:BoundField DataField="state" HeaderText="State" ItemStyle-Width="50" />--%>
       <asp:BoundField DataField="Flag" HeaderText="برچسب" />
            <asp:BoundField DataField="Name" HeaderText="نام مشتری" SortExpression="Name" />
            <asp:BoundField DataField="Family" HeaderText="نام خانوادگی" 
                SortExpression="Family" />
            <asp:BoundField DataField="Telephone" HeaderText="شماره تلفن" 
                SortExpression="Telephone" />
            <asp:BoundField DataField="FollowCode" HeaderText="کد پیگیری" 
                SortExpression="FollowCode" />
            <asp:BoundField DataField="Type" HeaderText="نوع مشکل" SortExpression="Type" />
            <asp:BoundField DataField="Address" HeaderText="آدرس" 
                SortExpression="Address" />
            <asp:BoundField DataField="Mobile" HeaderText="شماره موبایل" 
                SortExpression="Mobile" />
             <asp:BoundField DataField="ID" HeaderText="شماره پرونده" />
            
             <asp:TemplateField>

                <ItemTemplate>
                    <asp:CheckBox ID="chkCtrl" runat="server" AutoPostBack = "true" oncheckedchanged="chkCtrl_CheckedChanged"   />
                </ItemTemplate>
            </asp:TemplateField>
      
        </Columns>
        <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
        <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" />
        <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
        <RowStyle BackColor="White" ForeColor="#003399" />
        <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
        <SortedAscendingCellStyle BackColor="#EDF6F6" />
        <SortedAscendingHeaderStyle BackColor="#0D4AC4" />
        <SortedDescendingCellStyle BackColor="#D6DFDF" />
        <SortedDescendingHeaderStyle BackColor="#002876" />
    </asp:GridView>
    
                </td>
            </tr>
            <tr>
                <td align="right" style="width: 102px" >
                    <asp:Label ID="Label1" runat="server"  Text="انتخاب کارشناس"></asp:Label>
                </td>
                <td align="right">
                    <asp:DropDownList ID="DrpExpert" runat="server" DataSourceID="SqlDataSource2" 
                         DataValueField="ID" Height="20px" Width="140px"  DataTextField="Family"
                        AutoPostBack="True" CssClass="textbox">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td align="right" style="height: 17px; width: 102px;" >
                    <asp:Label ID="Label2" runat="server"  
                        Text="تاریخ تخصیص وظیفه"></asp:Label>
                </td>
                <td align="right" style="height: 17px" >
                    <asp:TextBox ID="Txtime" runat="server" Height="16px" Width="140px" 
                        CssClass="textbox"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td align="right" style="width: 102px" >
                    &nbsp;</td>
                <td align="right">
                    <asp:Button ID="BTnSEndTask" runat="server" onclick="BTnSEndTask_Click" 
                       OnClientClick="ShowConfirmBox(this,'آیا از  ارسال به کارشناس مطمینید </br> تایید به منزله ارسال پیامک به کارشناس جهت رسیدگی است'); return false;" 
                        Text="ارسال به کارشناس" Width="115px"  Enabled="false" CssClass="Button" />
                
                </td>
            </tr>
            <tr>
                <td align="right" style="width: 102px">
                    &nbsp;</td>
                <td align="left">
                    &nbsp;</td>
            </tr>
        </table>
    </td>
    </tr>
       </table>
       </div>
       </div>
       
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:CON %>" 
        ProviderName="System.Data.SqlClient" >
             
                           
        <SelectParameters>
        <%--<asp:Parameter Name="ExpertId" va>--%>
            <asp:ControlParameter ControlID="drProvinces" Name="ProvinceId" 
                PropertyName="SelectedValue" Type="Int32" />
            <asp:ControlParameter ControlID="DrpTask" Name="Flag" 
                PropertyName="SelectedValue" Type="Boolean" />
                
        </SelectParameters>
    </asp:SqlDataSource>
    </ContentTemplate>
    </asp:UpdatePanel>
    </asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Header" Runat="Server">
</asp:Content>

